package com.zsj.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zsj.dao.UserDao;
import com.zsj.dao.UserMapper;
import com.zsj.domain.User;
import com.zsj.service.UserService;
import com.zsj.service.base.BaseService;

@Service("userService")
public class UserServiceImpl extends BaseService implements UserService {
	
	@Autowired
	private UserDao userDao;
	
	@Resource
	private UserMapper userMapper;
	
	@Override
	public List<User> getUsers() {
		// TODO Auto-generated method stub
		return this.userMapper.getUsers();
	}

	@Override
	public List<?> findAll() {
		// TODO Auto-generated method stub
		return this.userMapper.getUsers();
	}

	@Override
	public List<User> queryUserByName(String name) {
		// TODO Auto-generated method stub
		List<User> list = this.userMapper.queryUserByName(name);
		return list;
	}

}
